package com.代理模式.静态代理.分库分表;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/3/1 9:37
 * @description:
 * @version:
 */
public class OrderServiceStaticProxyTest {

    public static void main(String[] args) throws Exception {
        Order order = new Order();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date date = sdf.parse("2017/02/02");
        order.setCreateTime(date.getTime());
        OrderService orderService = new OrderServiceStaticProxy(new OrderServiceBean());
        orderService.createOrder(order);
    }
}

